package filesystem.simplefactory;


import filesystem.simplefactory.FileSave;
import filesystem.simplefactory.factory.SaveTypeFactory;

public class SaveFactoryTest {
    public static void main(String[] args) {
        FileSave saveConnect = SaveTypeFactory.getSaveConnect(SaveTypeFactory.SAVE_DB);
        saveConnect.save("12345");

        FileSave saveConnect1 = SaveTypeFactory.getSaveConnect(SaveTypeFactory.SAVE_FILE);
        saveConnect1.save("12345");
    }
}